import request from '@/utils/request'

// 查询危化气瓶数量列表
export function listGasCylinderNum(query) {
  return request({
    url: '/labdata/gasCylinderNum/list',
    method: 'get',
    params: query
  })
}
//allGasCylindersType
export function getAllGasCylindersType() {
  return request({
    url: '/labdata/gasCylinderNum/allGasCylindersType',
    method: 'get'
  })
}
// 查询危化气瓶数量详细
export function getGasCylinderNum(cylinderNumberId) {
  return request({
    url: '/labdata/gasCylinderNum/' + cylinderNumberId,
    method: 'get'
  })
}

// 新增危化气瓶数量
export function addGasCylinderNum(data) {
  return request({
    url: '/labdata/gasCylinderNum',
    method: 'post',
    data: data
  })
}

// 修改危化气瓶数量
export function updateGasCylinderNum(data) {
  return request({
    url: '/labdata/gasCylinderNum',
    method: 'put',
    data: data
  })
}

// 删除危化气瓶数量
export function delGasCylinderNum(cylinderNumberId) {
  return request({
    url: '/labdata/gasCylinderNum/' + cylinderNumberId,
    method: 'delete'
  })
}

// 导出危化气瓶数量
export function exportGasCylinderNum(query) {
  return request({
    url: '/labdata/gasCylinderNum/export',
    method: 'get',
    params: query
  })
}